package com.beamfield.dao.mixstation;

import com.beamfield.model.MixConcreteDetect;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface MixConcreteDetectMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MixConcreteDetect record);

    int insertSelective(MixConcreteDetect record);

    MixConcreteDetect selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MixConcreteDetect record);

    int updateByPrimaryKey(MixConcreteDetect record);

    List<MixConcreteDetect> getTodayDetectList(@Param("offset")Integer offset, @Param("limit")Integer limit,
                                @Param("beam_no")String beam_no, @Param("tjz_no")String tjz_no,
                                @Param("beam_id")Long beam_id);

    int getTodayCount(@Param("beam_no")String beam_no, @Param("tjz_no")String tjz_no,@Param("beam_id")Long beam_id);

    List<MixConcreteDetect> getHistoryDetectList(@Param("offset")Integer offset, @Param("limit")Integer limit,
                                               @Param("beam_no")String beam_no, @Param("tjz_no")String tjz_no, @Param("detect_date")String detect_date,
                                               @Param("beam_id")Long beam_id);

    int getHistoryCount(@Param("beam_no")String beam_no, @Param("tjz_no")String tjz_no, @Param("detect_date")String detect_date,@Param("beam_id")Long beam_id);

    MixConcreteDetect selectByConcreteRearatioId(@Param("concrete_rearatio_id") Long concrete_rearatio_id);
}